package books4africa

import static org.junit.Assert.*
import org.junit.*

class DonationIntegrationTests{
	
	void testNewDonation(){
		def newDonation = new Donation(
			donationDate : new Date(),
			booknQty : "3"
		).save(failOnError:true)
		
		def foundDonation = Donation.get(newDonation.id)
		assertEquals "3", foundDonation.booknQty;
	}
}
